Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
15 lines (10 loc) · 330 Bytes

2.1.14 - Server->clearTimer.md

File metadata and controls

15 lines (10 loc) · 330 Bytes

Server->clearTimer

清除tick/after定时器,此函数是 swoole_timer_clear 的别名。

clearTimer仅可用于清除当前进程的定时器

使用示例

$timer_id = $server->tick(1000, function ($id) use ($server) {
    $server->clearTimer($id);
});